package com.gxsyh.nantie.user.management.provider.domain;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

/**
 * 对应着用户管理中用户信息页面的List
 * @email yom535@outlook.com
 * @author: 刘锋嘉(Liu Fengjia)
 * @date: 2020/1/3
 * @time: 14:48
 * @Description:
 */
@Data
public class UserInfoList {
    /**
     * ID
     */
    @JsonSerialize(using= ToStringSerializer.class)
    @Id
    @Column(name = "id")
    @GeneratedValue(generator = "JDBC")
    private Long id;

    /**
     * 真实姓名
     */
    @Column(name = "`name`")
    private String name;
    /**
     * 工号
     */
    @Column(name = "`job_number`")
    private String jobNumber;
    /**
     * 用户名
     */
    @Column(name = "username")
    private String username;

    /**
     * 部门名
     */
    @Column(name = "departmentName")
    private String departmentName;
}
